/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.feiyue;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.umeng.analytics.MobclickAgent;

// Referenced classes of package com.feiyue:
//          BookListActivity

public class BookCategoryActivity extends Activity
{

    private int categoryidarray[];
    private String categorynamearray[];

    public BookCategoryActivity()
    {
    }

    public void onCreate(Bundle bundle)
    {
        super.onCreate(bundle);
        setContentView(0x7f03000f);
        categorynamearray = getResources().getStringArray(0x7f0b0003);
        categoryidarray = getResources().getIntArray(0x7f0b0004);
        android.view.View.OnClickListener onclicklistener = new android.view.View.OnClickListener() {

            public void onClick(View view)
            {
                String s;
                int i;
                int j;
                s = ((TextView)view).getText().toString();
                i = categorynamearray.length;
                j = 0;
                
                while (j < i) {
                    if (!s.equals(categorynamearray[j])) {
                        j++;
                    } else {
                        Intent intent = new Intent(BookCategoryActivity.this, BookListActivity.class);
                        intent.putExtra("categoryname", s);
                        intent.putExtra("categoryid", categoryidarray[j]);
                        startActivity(intent);
                        
                        break;
                        
                    }
                }
            }
        };
        ((TextView)findViewById(0x7f060095)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f060096)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f060097)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f060098)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f060099)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f06009a)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f06009b)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f06009c)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f06009d)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f06009e)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f06009f)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a0)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a1)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a2)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a3)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a4)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a5)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a6)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a7)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a8)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600a9)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600aa)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600ab)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600ac)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600ad)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600ae)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600af)).setOnClickListener(onclicklistener);
        ((TextView)findViewById(0x7f0600b0)).setOnClickListener(onclicklistener);
    }

    protected void onDestroy()
    {
        super.onDestroy();
    }

    protected void onPause()
    {
        super.onPause();
        MobclickAgent.onPause(this);
    }

    protected void onResume()
    {
        super.onResume();
        MobclickAgent.onResume(this);
    }


}